package com.zt.proxy.model;

import com.alibaba.dubbo.common.utils.StringUtils;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class PomModel {

    private String groupId;
    private String artifactId;
    private String version;
    private String scope;
    
    public boolean isBroken() {
        return StringUtils.isEmpty(groupId) || StringUtils.isEmpty(artifactId) || StringUtils.isEmpty(version);
    }
}
